import request from "@/utils/request";
// 学生成绩详情
export function gradesInfo(query) {
  return request({
    url: '/school/teacher/mine/gradesInfo',
    method: 'get',
    params: query,
  })
}
// 学生-获取学习详细信息
export function studentStudyData(id) {
  return request({
    url: "/school/manager/account/student/baseData/" + id,
    method: "get",
  });
}
// 学生-获取学生课程学习记录
export function studentCourses(query) {
  return request({
    url: "/school/manager/account/student/courseStudyRecordList",
    method: "get",
    params: query,
  });
}
// 学生-校验教师数量
export function checkStudentNum(query) {
  return request({
    url: "/school/manager/account/checkStudentNum",
    method: "get",
    params: query,
  });
}
// 查询列表
export function listPost_student(query) {
  return request({
    url: "/school/manager/account/student/list",
    method: "get",
    params: query,
  });
}

// 查询详细
export function getPost_student(studentId) {
  return request({
    url: "/school/manager/account/student/" + studentId,
    method: "get",
  });
}

// 新增
export function addPost_student(data) {
  return request({
    url: "/school/manager/account/student",
    method: "post",
    data: data,
  });
}
// 学生-导入列表
export function import_student(data) {
  return request({
    url: "/school/manager/account/student/import",
    method: "post",
    data: data,
  });
}
// 密码重置
export function addPost_resetPwd(postId) {
  return request({
    url: "/school/manager/account/student/resetPwd/" + postId,
    method: "post",
  });
}
// 状态修改
export function addPost_changeStatus(data) {
  return request({
    url: "/school/manager/account/student/changeStatus",
    method: "post",
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
    data: data,
  });
}

// 修改
export function updatePost_student(data) {
  return request({
    url: "/school/manager/account/student",
    method: "put",
    data: data,
  });
}

// 删除
export function delPost_student(postId) {
  return request({
    url: "/school/manager/account/student/" + postId,
    method: "delete",
  });
}
